//初始化消息提醒
var messageCommend = function(_object){
	var messagecommend = new Object();
	var conf = {
			 extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',
			 theme: 'ice'	
	}
	$.extend(conf,_object);
	Messenger.options = conf;
	
	messagecommend.info = function(object){
		Messenger().post({
    		message:object.message,
    		showCloseButton: true,
    		actions:{
    			retry: {
    			      label: '确定',
    			      phrase: '确定',
    			      auto: true,
    			      delay: 5,
    			      action: object.actionFn
    			}
    		}
    	});
	}
	
	messagecommend.error = function(object){
		Messenger().post({
    		message:object.message,
    		type: 'error',
    		showCloseButton: true
    	});
	}
	return messagecommend;
	
}
		    